package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.AcademicMonographs;
import com.zhijian.medical.entity.vo.request.AcademicMonographsSearchVo;
import com.zhijian.medical.entity.vo.response.AcademicMonographsVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AcademicMonographsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AcademicMonographs record);

    int insertSelective(AcademicMonographs record);

    AcademicMonographs selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AcademicMonographs record);

    int updateByPrimaryKey(AcademicMonographs record);

    /**
     * 查询总数
     *
     * @param academicMonographsSearchVo
     * @return
     */
    int count(AcademicMonographsSearchVo academicMonographsSearchVo);

    /**
     * 查询列表
     *
     * @param academicMonographsSearchVo
     * @return
     */
    List<AcademicMonographsVo> selectList(AcademicMonographsSearchVo academicMonographsSearchVo);

    /**
     * 查询单个
     *
     * @param academicMonographsSearchVo
     * @return
     */
    AcademicMonographsVo selectOne(AcademicMonographsSearchVo academicMonographsSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    AcademicMonographsVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param academicMonographsSearchVo
     * @return
     */
    void deleteByCondition(AcademicMonographsSearchVo academicMonographsSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<AcademicMonographs> entities);

    /**
     * 根据UserId查询列表
     *
     * @param userId
     * @return
     */
    List<AcademicMonographsVo> selectListByUserId(Long userId);
}